import { createApp } from 'vue'
import App from './App.vue'
//注册路由
import router from './router/index'
//注册Element Plus
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'element-plus/theme-chalk/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import store from './store/index'
import mTree from './components/menu/index';
import './style.css'

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app
    .use(mTree)
    .use(router)
    .use(store)
    .use(ElementPlus,{
        locale: zhCn,
    })
    .mount('#app')


